home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
utility3
/
what.zip
/
LIBMAIN.C_
/
LIBMAIN.bin
Wrap
Text File
|
1992-07-15
|
3KB
|
94 lines
/*****************************************************************************
* *
* LIBMAIN.C *
* *
* Copyright (C) Microsoft Corporation 1991. *
* All Rights reserved. *
* *
******************************************************************************
* *
* Module Description: Main entry point for sample Help DLL *
* *
*****************************************************************************/
#define NOMINMAX
#include <windows.h>
#include "dlldemo.h"
#ifndef EXPORT
#define EXPORT FAR PASCAL
#endif
#define PRIVATE static
/*****************************************************************************
* *
* Prototypes *
* *
*****************************************************************************/
BOOL EXPORT LibMain(HANDLE hModule,
WORD wDataSeg,
WORD cbHeap,
LPSTR lpchCmdLine);
int EXPORT WEP( int idParam );
/***************************************************************************
*
- Name LibMain
-
* Purpose Called by system (through ewdemo.asm) when library is loaded.
*
* Arguments hModule Module handle for the library
* cbHeap Size of local heap
* lpchCmdLine Pointer to the command line
*
* Returns
*
* +++
*
* Notes
*
***************************************************************************/
BOOL EXPORT LibMain( HANDLE hModule,
WORD wDataSeg,
WORD cbHeap,
LPSTR lpchCmdLine )
{
if (cbHeap)
UnlockData(0);
if (!FInitEmbeddedWindow( hModule ) )
return FALSE; /* Initialization failed */
if (!FInitExtendedWindow( hModule ) )
return FALSE; /* Initialization failed */
return TRUE; /* if we got here everything is ok! */
}
/***************************************************************************
*
- Name WEP
-
* Purpose Termination routine called by system.
*
* Arguments idParam (not used)
*
* Returns 1
*
* +++
*
* Notes This is optional.
*
***************************************************************************/
int EXPORT WEP( int idParam )
{
return 1;
}